import type React from "react"
import type { Metadata } from "next"
import { Inter } from "next/font/google"
import "./globals.css"
import { HistoryProvider } from "@/components/history-context"

const inter = Inter({
  subsets: ["latin"],
  display: "swap",
  variable: "--font-inter",
})

export const metadata: Metadata = {
  title: "照片识别 - AI智能识别照片中的人物与物品",
  description:
    "上传您的照片，我们的AI技术将自动识别照片中的人物、物品和场景，为您提供精准的标签和分析。",
}

export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="zh-CN" suppressHydrationWarning className={inter.variable}>
      <body className="font-sans">
        <HistoryProvider>{children}</HistoryProvider>
      </body>
    </html>
  )
}
